%%writefile C:/User/user/Desktop/yuesefuhuan.py
def move(shijuntong_list,num):
    while num >0:
        shijuntong_list.append(shijuntong_list.pop(0))
        num = num-1
    return play_list

###############
def shijuntong(renshu,step,stop):
    shijuntong_list = [i for i in range(1.renshu+1)]
    num = step -1
    while len(shijuntong_list) >stop:
        shijuntong_list =move(shijuntong_list.num)
        shijuntong_list.pop(0)
    return shijuntong_list
play(41,3,3)